package com.example.compreshensiveshop.dao;

import com.example.compreshensiveshop.po.CartPO;
import com.example.compreshensiveshop.vo.CartListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CartDao {
    /**
     * 添加购物车
     * @param cartPO
     */
    void addCart(@Param("cartPO") CartPO cartPO);
    /**
     * 查询购物车
     * @param customerId
     * @return
     */

    List<CartListVO> queryByCId(@Param("customerId") Long customerId);
    /**
     * 删除购物车
     * @param ids
     */

    void deleteByCIds(@Param("ids") List<Long> ids);
    /**
     * 修改购物车
     * @param cartPO
     */

    void updateCart(@Param("cartPO") CartPO cartPO);
}
